# encoding=utf-8

# encoding=utf-8
from flask import Blueprint

from app.Bean.ResultData import ResultData
from app.Service.HistoryService import HistoryService

history = Blueprint('history', __name__)
history_service = HistoryService()


@history.route('/history/teams_data', methods=['GET'])
def team_data():
    return ResultData().sucess(history_service.get_teams_data())


@history.route('/history/best_player', methods=['GET'])
def best_player():
    return ResultData().sucess(history_service.get_best_players())


@history.route('/history/best_team', methods=['GET'])
def best_team():
    return ResultData().sucess(history_service.get_best_teams())
